package com.gene.service.impl;

import com.gene.mapper.TbItemDetectionMapper;
import com.gene.pojo.TbItemDetection;
import com.gene.pojo.TbItemDetectionExample;
import com.gene.service.ITbItemDetectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbItemDetectionServiceImpl implements ITbItemDetectionService {
    @Autowired
    private TbItemDetectionMapper tbItemDetectionMapper;


    @Override
    public List<TbItemDetection> query(TbItemDetection tbItemDetection) {
        TbItemDetectionExample example=new TbItemDetectionExample();
        TbItemDetectionExample.Criteria criteria = example.createCriteria();
        criteria.andItemIdEqualTo(tbItemDetection.getItemId());
        List<TbItemDetection> list = tbItemDetectionMapper.selectByExample(example);
        return list;
    }
}
